package me.ivps.android.testdemo;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

/**
 * MainActivity 主界面
 * 
 * @author Zoe
 * 
 */
public class FirstActivity extends Activity {
    
    private TextView mTv;
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        setContentView(R.layout.activity_main);
        
        mTv = (TextView) findViewById(R.id.my_tv);
        
        findViewById(R.id.my_btn).setOnClickListener(
                new View.OnClickListener() {
                    
                    @Override
                    public void onClick(View v) {
                        mTv.setText(R.string.text_hello);
                        mTv.setVisibility(View.VISIBLE);
                    }
                });
        
    }
}
